home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / comm / mail / HTMLread.lha / HTMLreadINSTALL / Install next >
Text File  |  2001-03-10  |  10KB  |  346 lines

  1. ; Installer installation script for HTMLread.rexx
  2. ; $VER:Install HTMLread V1.00 (04.02.2000)
  3.  
  4. (set @default-dest "YAM:")
  5. (set @app-name "HTMLread Install")
  6. (set @pretend 0)
  7. (set @user-level 1)
  8.  
  9. ;(user 1)
  10.  
  11. (if (< (/ (getversion) 65536) 37)
  12.   (
  13.     (abort "You must have Kickstart 2.0 or higher installed to use HTMLread!")
  14.   )
  15. )
  16.  
  17. (complete 0)
  18.  
  19. (message "\nHTMLread installation!\n\n\n"
  20.          "This script installs HTMLread\n"
  21.          "on your Amiga.\n\n"
  22.          "HTMLread need YAM 2.1\n"
  23.          "and of course a running RexxMast"
  24. )
  25.  
  26. (complete 5)
  27.  
  28. (if (exists "Libs/rexxreqtools.library" (noreq))
  29.   (
  30.     (complete 10)
  31.  
  32.     (copylib
  33.       (prompt "\nCopying rexxreqtools.library to LIBS:...")
  34.       (help "The rexxreqtools.library used from:\n"
  35.             "- HTMLreadPrefs\n"
  36.             "- Optimizer\n\n\n"
  37.             @copylib-help)
  38.       (source "Libs/rexxreqtools.library")
  39.       (dest "LIBS:")
  40.       (confirm 1)
  41.       (optional "nofail")
  42.       (delopts "askuser")
  43.     )
  44.   )
  45. )
  46.  
  47. (complete 15)
  48.  
  49. (if (exists "Libs/reqtools.library" (noreq))
  50.   (
  51.     (complete 20)
  52.  
  53.     (copylib
  54.       (prompt "\nCopying reqtools.library to LIBS:...")
  55.       (help @copylib-help)
  56.       (source "Libs/reqtools.library")
  57.       (dest "LIBS:")
  58.       (confirm 1)
  59.       (optional "nofail")
  60.       (delopts "askuser")
  61.     )
  62.   )
  63. )
  64.  
  65. (complete 25)
  66.  
  67. (set temp (EXISTS "YAM:HTMLread" (noreq)))
  68.  
  69. (IF (= "2" temp)
  70.   ( (IF  (askchoice (prompt "\n\nDo you want backup the old HTMLread?\n")
  71.                     (help "If you choose: Yes, of course!\n"
  72.                           "the installer will rename the old HTMLread\n"
  73.                           "to HTMLread.bak. A old HTMLread.bak will be\n"
  74.                           "deleted.\n\n"
  75.                           "If you choose: No, delete the old!\n"
  76.                           "the Installer delete the old HTMLread drawer.\n\n\n\n"
  77.                           @askchoice-help
  78.                     )
  79.                     (choices "Yes, of course!"
  80.                              "No, delete the old!"
  81.                     )
  82.                     (default "0")  )
  83.         (  (run "C:delete YAM:HTMLread/#? YAM:HTMLread YAM:HTMLread.info YAM:UnInstall YAM:UnInstall.info ALL FORCE QUIET")
  84.            (complete 26)
  85.         )
  86.         (  (if ( exists "YAM:HTMLread.bak")
  87.              ( ( run "C:delete >NIL: YAM:HTMLread.bak/#? YAM:HTMLread.bak YAM:HTMLread.bak.info YAM:UnInstall YAM:UnInstall.info ALL FORCE QUIET"
  88.                  ( SAFE )
  89.                )
  90.                ( run "C:rename >NIL: QUIET FROM YAM:HTMLread TO YAM:HTMLread.bak" 
  91.                  ( SAFE )
  92.                )
  93.                ( run "C:rename >NIL: QUIET FROM YAM:HTMLread.info TO YAM:HTMLread.bak.info" 
  94.                  ( SAFE )
  95.                )
  96.                ( message "\n\n\n\n\nOk, I backuped HTMLread to HTMLread.bak")
  97.              )
  98.              ( ( run "C:rename >NIL: QUIET FROM YAM:HTMLread TO YAM:HTMLread.bak"
  99.                  ( SAFE )
  100.                )
  101.                ( run "C:rename >NIL: QUIET FROM YAM:HTMLread.info TO YAM:HTMLread.bak.info" 
  102.                  ( SAFE )
  103.                )
  104.                ( message "\n\n\n\n\nOk, I backuped HTMLread to HTMLread.bak")
  105.              )
  106.            )
  107.         )
  108.     )
  109.   )
  110. )
  111.  
  112. (complete 30)
  113.  
  114. (copyfiles
  115.            ( prompt "Copy HTMLread-drawer!\nA new drawer will be created!" )
  116.            ( source "installfiles/" )
  117.            ( dest "YAM:" )
  118.            ( help "This is the support-drawer for HTMLread\n"
  119.                   "Here you find the prefseditor, docs...\n\n\n\n"
  120.                   @copyfiles-help
  121.            )
  122.            ( infos )
  123.            ( confirm 1 )
  124.            ( all )
  125.            ( optional "nofail" )
  126.            ( delopts "askuser" )
  127.            ( safe )
  128. )
  129.  
  130. ( run "copy installfiles/HTMLread.info yam:" )
  131.  
  132. (complete 65)
  133.  
  134. (set RexxPath (EXISTS "YAM:Rexx" (noreq)))
  135.  
  136. (IF (= "0" RexxPath)
  137.         (set RexxPath (askdir (prompt "\nWere can I install the HTMLread.rexx?\nPlease choose youre Rexx-drawer!\n")
  138.                           (help "HTMLread.rexx is the most importend part. Please copy this to youre Rexx drawer. For example YAM:Rexx/\n\n"
  139.                                 @askdir-help
  140.                           )
  141.                           (default "YAM:")
  142.                   )
  143.         )
  144.         ( (set RexxPath "YAM:Rexx") )
  145. )
  146.  
  147. (complete 70)
  148. (copyfiles (prompt "\nNow you should copy the checkHTML.rx!\n"
  149.                    "This is the file that detect HTML-EMails and start HTMLread.rx!\n"
  150.            )
  151.            (source "installfiles/HTMLread/Scripts/OPT/checkHTML.rx")
  152.            (dest RexxPath)
  153.            (help @copyfiles-help)
  154.            (infos)
  155.            (optional "nofail")
  156.            (delopts "askuser")
  157.            ( confirm 2 )
  158.            (safe)
  159. )
  160. (complete 75)
  161.  
  162. (set temp 1)
  163. (if (< (/ (getversion) 65536) 39)
  164.   ( (set temp 0) )
  165. )
  166.  
  167. (set temp (askchoice (prompt "\n\nPlease selcet the HTMLread binary!\nWhich Version do you want use?\n")
  168.                      (help "\nNote, the OS3.0-Version will cause a GURU if you use it with V2.x\n\n\n"
  169.                            @askchoice-help
  170.                      )
  171.                      (choices "OS2.x-Version"
  172.                               "OS3.x-Version"
  173.                      )
  174.                      (default temp)
  175.           )
  176. )
  177.  
  178. (IF (= "0" temp)
  179.       ( (set temp "installfiles/HTMLread/bin/HTMLread.OS2") )
  180.       ( (set temp "installfiles/HTMLread/bin/HTMLread.OS3") )
  181. )
  182.  
  183. (copyfiles (prompt "\nNow you should copy the HTMLread binary!\n"
  184.                    "This file converts youre HTMLmail!\n"
  185.            )
  186.            (source temp)
  187.            (dest "C:")
  188.            (newname "HTMLread")
  189.            (help "Here you copy one of the most importend parts: HTMLread binary"
  190.                  "You can find this file in YAM:HTMLread/bin/, too.\n\n\n"
  191.                  @copyfiles-help
  192.            )
  193.            (infos)
  194.            (optional "nofail")
  195.            (delopts "askuser")
  196.            ( confirm 2 )
  197.            (safe)
  198. )
  199. (complete 78)
  200. ( set temp ( cat RexxPath "/HTMLread.rx" ) )
  201.  
  202. (textfile (prompt "\nSet ENV:HTMLread to \n»"
  203.                   temp
  204.                   "«\n\nIn ENV:HTMLread checkHTML.rx find the path for HTMLread.rx\n"
  205.           )
  206.           (help   "\nCopy HTMLreadpath to ENV:...\n")
  207.           ( dest "ENV:HTMLread" )
  208.           ( append temp )
  209.           ( confirm 2 )
  210.           ( safe )
  211. )
  212. (complete 79)
  213. (textfile (prompt "\nSet ENVARC:HTMLread\n" )
  214.           (help   "\nCopy HTMLreadpath to ENVARC:...\n")
  215.           ( dest "ENVARC:HTMLread" )
  216.           ( append temp )
  217.           ( confirm 2 )
  218.           ( safe )
  219. )
  220. (complete 80)
  221.  
  222. (copyfiles (prompt "\nNow you should copy the HTMLread.rx!\n"
  223.                    "This start youre HTML-Viewer!\n"
  224.            )
  225.            (source "installfiles/HTMLread/Scripts/OPT/HTMLread.rx")
  226.            (dest RexxPath)
  227.            (help "Here you copy the most importend part: HTMLread.rx "
  228.                  "You can find this file in YAM:HTMLread/Scripts/, too.\n\n\n"
  229.                  @copyfiles-help
  230.            )
  231.            (infos)
  232.            (optional "nofail")
  233.            (delopts "askuser")
  234.            ( confirm 2 )
  235.            (safe)
  236. )
  237. (complete 85)
  238.  
  239. (copyfiles (prompt "\nNow you should copy the HRdownload.rx!\n"
  240.                    "This downloads youre added pictures in the imagelist!\n"
  241.            )
  242.            (source "installfiles/HTMLread/Scripts/OPT/HRdownload.rx")
  243.            (dest RexxPath)
  244.            (help @copyfiles-help)
  245.            (infos)
  246.            (optional "nofail")
  247.            (delopts "askuser")
  248.            ( confirm 2 )
  249.            (safe)
  250. )
  251. (complete 90)
  252.  
  253. (copyfiles
  254.            (prompt "\nNow you should copy the (ON/Off)line-Plugin!\n"
  255.                    "This Plugin control youre TCP/IP-stack.\n"
  256.            )
  257.            (source "installfiles/HTMLread/Scripts/OPT/onlinePlugins")
  258.            (dest RexxPath)
  259.            (help @copyfiles-help)
  260.            (infos)
  261.            (confirm 1)
  262.            (all)
  263.            (optional "nofail")
  264.            (delopts "askuser")
  265.            (safe)
  266. )
  267. (complete 94)
  268.  
  269. (copyfiles
  270.            (prompt "\nNow you should copy the status-gifs!")
  271.            (source "Icons")
  272.            (dest "YAM:Icons/")
  273.            (help @copyfiles-help)
  274.            (infos)
  275.            (confirm 1)
  276.            (all)
  277.            (optional "nofail")
  278.            (delopts "askuser")
  279.            (safe)
  280. )
  281. (complete 95)
  282. (copyfiles (prompt "\nNow you should copy the badurl list!\n"
  283.                    "This file protect you against EMail watching!\n"
  284.            )
  285.            (source "installfiles/HTMLread/badurls.HTMLread")
  286.            (dest "YAM:")
  287.            (help
  288.                  @copyfiles-help
  289.            )
  290.            (infos)
  291.            (optional "nofail")
  292.            (delopts "askuser")
  293.            ( confirm 2 )
  294.            (safe)
  295. )
  296. (complete 99)
  297.  
  298. (set temp (askchoice (prompt "\n\nDo you want read the HTMLreadGuide now?\n\nPlease read chapter »How to install«\n")
  299.                      (help "\nIt is strongly advisable to read the guide, because some changes in YAM-Config have to made\n\n\n"
  300.                            @askchoice-help
  301.                      )
  302.                      (choices "No, I read the guide later!"
  303.                               "Yes, the english please"
  304.                               "Ja, die deutsche bitte"
  305.                      )
  306.                      (default "1")
  307.           )
  308. )
  309. (if (= temp 0)
  310.   ( (message
  311.          "The ARexx-scripts are now installed. Please read "
  312.          "the docfile HTMLread.doc. "
  313.          "Because you must configure YAM!\n\n"
  314.          "Fast: Start YAM and run the configwindow. Choose under ARexx: "
  315.          "»When reading a message«, "
  316.          "Type »YAM:Rexx/checkHTML.rx«, do  NOT  mark the two button "
  317.          "»Open console window« and »Wait for termination«! Save the config! "
  318.          "Open the drawer YAM:HTMLread und start "
  319.          "HTMLreadPrefs, click Viewer and choose one, "
  320.          "save the config!\nReady!"
  321.     )
  322.   )
  323. )
  324. (if (= temp 1)
  325.    ( (run "SYS:Utilities/MultiView YAM:HTMLread/DOC/HTMLread.EN.guide"
  326.            (prompt "\nStart MultiView with HTMLread.EN.guide\nPlease read chapter »How to install«")
  327.            (help "\n\n\nDo you want read the doc?\n\n\n")
  328.            (confirm 2)
  329.            (safe)
  330.      )
  331.  
  332.    )
  333. )
  334. (if (= temp 2)
  335.    (  (run "SYS:Utilities/MultiView YAM:HTMLread/DOC/HTMLread.DE.guide"
  336.            (prompt "\nStart MultiView with HTMLread.DE.guide")
  337.            (help "\n\n\nDo you want read the doc?\n\n\n")
  338.            (confirm 2)
  339.            (safe)
  340.       )
  341.    )
  342. )
  343.  
  344. (complete 100)
  345. (exit)
  346.